package main;

public class Pair<T> {
	private T e1, e2;
	public Pair(T a, T b) {
		e1 = a;
		e2 = b;
	}
	public T getE1() {return e1;}
	public T getE2() {return e2;}
	public boolean isIdenticalPair() {
		return e1.equals(e2);
	}
	public String toString() {
		return e1.toString()+" and "+e2.toString();
	}
}
